/**
 * 取消预订相关 WebSocket 事件处理器
 */
const handleCancelRequestApproved = (io, socket) => {
  socket.on('server:cancel-request-approved', async ({ orderId, message }) => {
    console.log(`[WebSocket] 发送取消申请审核通过通知，订单ID=${orderId}`);
    io.to(socket.id).emit('client:cancel-request-approved', { orderId, message });
  });
};

module.exports = { handleCancelRequestApproved };